<extend name="Public:layout"/>
<block name="content">
    <!-- <?php print_r($list)?> -->
    <div class="row-fluid sortable ui-sortable">
        <div class="box span12">
            <div data-original-title="" class="box-header" style="height:30px">
                <h2 style="font-size:22px"><i class="halflings-icon th"></i><span class="break"></span>导航列表</h2>
                <div class="box-icon" >


                    <a href={:U('admin/nav/add')} style="margin-right:80px;">

                            <button class="btn btn-primary" type="button" style="margin-bottom:10px;margin-top:0px;font-size:22px"> 导航添加</button>

                    </a>
                    <a class="btn-setting" href="#"><i class="halflings-icon white wrench"></i></a>
                    <a class="btn-minimize" href="#"><i class="halflings-icon white chevron-up"></i></a>

                </div>
            </div>
            <div class="box-content">
                <div role="grid" class="dataTables_wrapper" id="DataTables_Table_0_wrapper">


                <table class="table table-striped table-bordered  dataTable" id="DataTables_Table_0" >
                  <thead>
                    <tr role="row">
                        <th colspan="" rowspan="" headers="" scope=""></th>
                        <th >ID</th>
                        <th class="sorting_asc" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 252px;" aria-sort="ascending" aria-label="Username: activate to sort column descending">导航名称</th>
                        <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 359px;" aria-label="Date registered: activate to sort column ascending">是否显示</th>
                        <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 209px;" aria-label="Role: activate to sort column ascending">所属模块</th>
                        <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 215px;" aria-label="Status: activate to sort column ascending">导航位置</th>
                        <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 215px;" aria-label="Status: activate to sort column ascending">路径</th>
                        <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 215px;" aria-label="Status: activate to sort column ascending">图标</th>
                        <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 215px;" aria-label="Status: activate to sort column ascending">父级</th>

                        <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 426px;" aria-label="Actions: activate to sort column ascending">Actions</th>
                    </tr>
                  </thead>

                <tbody role="alert" aria-live="polite" aria-relevant="all" ">

                 <foreach name="list" item ="v">
                    <tr class="odd">
                            <td style="text-align:right;width:40px;line-height: 30px;">
                                <label class="checkbox inline" style="float:left;margin-left:0px;padding-left:0px ;position:relative;left:0px">

                                            <input type="checkbox" value="option1" id="inlineCheckbox1" >

                                </label>
                            </td>
                            <td colspan="" rowspan="" headers="">{$v.id}</td>
                            <td class="  sorting_1">{$v.name}</td>
                            <td class="center ">{$v['is_show']==1?"显示":"不显示"}</td>
                            <td class="center ">{$v['is_home']==1?"前台":"后台"}</td>
                            <td class="center ">
                                   <switch name="v.point">
                                        <case value="1">顶部</case>
                                        <case value="2">中部</case>
                                        <case value="3">底部</case>
                                        <case value="4">无</case>
                                        <default />
                                    </switch>
                            </td>
                            <td class="center ">{$v.url}</td>
                            <td class="center ">
                                <i class="{$v.icon}"></i>
                            </td>
                             <td class="center ">{$v.pid}</td>
                            <td class="center ">
                                <a href="#" class="btn btn-success">
                                    <i class="halflings-icon white zoom-in"></i>
                                </a>
                                <a href="{:U('Admin/nav/edit/id/'.$v['id'])}" class="btn btn-info">
                                    <i class="halflings-icon white edit"></i>
                                </a>
                                <a href="{:U('Admin/nav/del/id/'.$v['id'])}" class="btn btn-danger" onclick="return confirm('确定删除吗？')">
                                    <i class="halflings-icon white trash"></i>
                                </a>
                            </td>
                        </tr>
                    </foreach>
                    </tbody>
                </table>
                    {$page}
               <!--   <div class="row-fluid">
                        <div class="span12">
                            <div class="dataTables_info" id="DataTables_Table_0_info">Showing 1 to 10 of 32 entries</div>
                        </div>
                         <div class="span12 center">
                            <div class="dataTables_paginate paging_bootstrap pagination">
                                <ul>
                                    <li class="prev disabled"><a href="#">← Previous</a></li>
                                    <li class="active"><a href="#">1</a></li>
                                    <li><a href="#">2</a></li>
                                    <li><a href="#">3</a></li>
                                    <li><a href="#">4</a></li>
                                    <li class="next"><a href="#">Next → </a></li>
                                </ul>
                            </div>
                        </div>
                    </div> -->
                </div>
            </div>
        </div><!--/span-->

    </div>
</block>